﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace FloatBall
{
    static class BoatTypes
    {
        public struct BoatType
        {
            //Fysik-variabler
            public float forwardResistance;
            public float planeAbility;
            public float mass;
            public float sideStability;
            public float boyancy;
            public float enginePower;
            public float turnSpeed;
            
            //För collision detection-ellipsoid
            public float length;
            public float width;
            public float height;

            //Visuella
            public String name;
            public String description;
            //public Model model;
            
            //Index
            public int index;
        }


        public const int NUM_TYPES = 6;

        
        public static BoatType[] boatType;

        public static Model[] model = new Model[NUM_TYPES];



        public static void Init()
        {
            boatType = new BoatType[NUM_TYPES];
            
            //Båtmodell nr 0
            int n = 0;
            boatType[n] = new BoatType();
            //Fysik-variabler
            boatType[n].forwardResistance = 1;
            boatType[n].planeAbility = 1;
            boatType[n].mass = 1;
            boatType[n].boyancy = 1;
            boatType[n].sideStability = 1;
            boatType[n].enginePower = 1;
            boatType[n].turnSpeed = 1;
            
            //För collision detection-ellipsoid
            boatType[n].length = 1;
            boatType[n].width = 1;
            boatType[n].height = 1;

            //Visuella
            boatType[n].name = "Norm";
            boatType[n].description = "A completely ordinary boat. Or?";
            //boatType[n].model = new Model();

            //Index
            boatType[n].index = n;




            //Båtmodell nr 1
            n = 1;
            boatType[n] = new BoatType();
            //Fysik-variabler
            boatType[n].forwardResistance = 1000; //Higher is better
            boatType[n].sideStability = 140; //lower is more stable
            boatType[n].planeAbility = 290; //Lower is better
            boatType[n].mass = 30f;
            boatType[n].boyancy = 0.030f;
            
            boatType[n].enginePower = 0.1f;
            boatType[n].turnSpeed = 0.004f;

            //För collision detection-ellipsoid och vattenfysik
            boatType[n].length = 75;
            boatType[n].width = 20;
            boatType[n].height = 15;

            //Visuella
            boatType[n].name = "Speedoo";
            boatType[n].description = "A monster.";
            //boatType[n].model = new Model();

            //Index
            boatType[n].index = n;


        }










    }
}
